﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FacturIT.Service.Project
{
    public class ProjectDTO
    {
        private FacturIT.BLL.Model.Project.Project project;

        public ProjectDTO(FacturIT.BLL.Model.Project.Project project)
        {
            this.project = project;
        }
        public bool HasObject { get { return project != null; } }


        public int ProjectID
        {
            get
            {
                return project.ProjectID;
            }
            private set
            {
            }
        }
        public string ProjectName
        {
            get
            {
                return project.Name;
            }
            private set
            {
            }
        }
        public DateTime StartDate
        {
            get
            {
                return project.StartDate;
            }
            private set
            {
            }
        }
        public DateTime? EndDate
        {
            get
            {
                return project.EndData;
            }
            private set
            {
            }
        }

        public bool Active
        {
            get
            {
                return project.Active;
            }
            private set
            {
            }
        }

        public int PaymentType
        {
            get
            {
                return project.PaymentType;
            }
            private set
            {
            }
        }
        public int Customer
        {
            get
            {
                return project.Customer;
            }
            private set
            {
            }
        }
    }
}